import { createRouter, createWebHashHistory } from 'vue-router'
import Adm from"../src/views/adm/Adm.vue"
	import AdmClz from"../src/views/adm/Clz.vue"
	import AdmCourse from"../src/views/adm/Course.vue"
	import AdmHead from"../src/views/adm/Head.vue"
	import AdmTask from"../src/views/adm/Task.vue"
	import AdmStuAdd from"../src/views/adm/stu/Add.vue"
	import AdmStuShow from"../src/views/adm/stu/Show.vue"
	import AdmTeaAdd from"../src/views/adm/tea/Add.vue"
	import AdmTeaShow from"../src/views/adm/tea/Show.vue"
import Stu from"../src/views/stu/Stu.vue"
	import StuCourse from"../src/views/stu/Course.vue"
	import StuMain from"../src/views/stu/Main.vue"
	import StuMark from"../src/views/stu/Mark.vue"
	import StuHead from"../src/views/tea/Head.vue"
	import StuPwd from"../src/views/tea/Pwd.vue"
import Tea from"../src/views/tea/Tea.vue"
	import TeaDoMark from"../src/views/tea/DoMark.vue"
	import TeaGoMark from"../src/views/tea/GoMark.vue"
	import TeaHead from"../src/views/tea/Head.vue"
	import TeaMain from"../src/views/tea/Main.vue"
	import TeaPwd from"../src/views/tea/Pwd.vue"
import Login from"../src/views/Login.vue"


// 路由表 # 后面路径 和组件形成一一对应关系
const routes=[//定义路由表
	{
		path:"/adm",
		component:Adm,
		children:[{
			path:"clz",//千万别加/clz
			component:AdmClz
			},{
			path:"course",//千万别加/
			component:AdmCourse
			},{
			path:"head",//千万别加/
			component:AdmHead
			},{
			path:"task",//千万别加/
			component:AdmTask
			},{
			path:"stuadd",//千万别加/
			component:AdmStuAdd
			},{
			path:"stushow",//千万别加/
			component:AdmStuShow
			},{
			path:"teaadd",//千万别加/
			component:AdmTeaAdd
			},{
			path:"teashow",//千万别加/
			component:AdmTeaShow
		}]
	},
	{
		path:"/stu",
		component:Stu,
		children:[{
			path:"course",//千万别加/
			component:StuCourse
			},{
			path:"main",//千万别加/
			component:StuMain
			},{
			path:"mark",//千万别加/
			component:StuMark
			},
			{
			path:"head",//千万别加/
			component:StuHead
			},{
			path:"pwd",//千万别加/
			component:StuPwd
			}]
	},{
		path:"/tea",
		component:Tea,
		children:[{
			path:"domark",//千万别加/
			component:TeaDoMark
			},{
			path:"gomark",//千万别加/
			component:TeaGoMark
			},{
			path:"head",//千万别加/
			component:TeaHead
			},{
			path:"main",//千万别加/
			component:TeaMain
			},{
			path:"pwd",//千万别加/
			component:TeaPwd
			}]
	},{
		path:"/login",
		component:Login
	}
	
]
//告诉Vue-router 路由数组（注册路由表）
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes
})
// export 暴露出来 为import做准备（暴露路由表）
export default router